class UserInfoBean {
  int? code;
  Data? data;
  String? msg;

  UserInfoBean({this.code, this.data, this.msg});

  UserInfoBean.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    data = json['data'] != null ? Data.fromJson(json['data']) : null;
    msg = json['msg'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['code'] = code;
    if (this.data != null) {
      data['data'] = this.data?.toJson();
    }
    data['msg'] = msg;
    return data;
  }
}

class Data {
  String? nickname;
  String? avatar;
  String? mobile;
  int? sex;
  int? point;
  int? experience;
  Null? level;
  Null? brokerageEnabled;

  Data(this.nickname, this.avatar, this.mobile, this.sex, this.point, this.experience, this.level,
      this.brokerageEnabled);

  Data.fromJson(Map<String, dynamic> json) {
    nickname = json['nickname'];
    avatar = json['avatar'];
    mobile = json['mobile'];
    sex = json['sex'];
    point = json['point'];
    experience = json['experience'];
    level = json['level'];
    brokerageEnabled = json['brokerageEnabled'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['nickname'] = nickname;
    data['avatar'] = avatar;
    data['mobile'] = mobile;
    data['sex'] = sex;
    data['point'] = point;
    data['experience'] = experience;
    data['level'] = level;
    data['brokerageEnabled'] = brokerageEnabled;
    return data;
  }
}
